package kr.pe.johnkim.carrotpoint.mobile.dao;

import kr.pe.johnkim.carrotpoint.mobile.domain.CheckMileageMember;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author : johnkim <cale9797@gmail.com / Bettersoft, Inc.>
 * @date: 12. 12. 31.
 */
@Repository
public class CheckMileageMemberDaoImpl extends SqlSessionDaoSupport implements CheckMileageMemberDao {

    // SLF4J Logging
    private Logger logger = LoggerFactory.getLogger(CheckMileageMemberDaoImpl.class);

    /**
     * 사용자 목록을 가져 온다.
     *
     * @param checkMileageMember
     * @return
     */
    @Override
    public List<CheckMileageMember> getMemberList(CheckMileageMember checkMileageMember) {
        logger.info("getMemberList");
        return (List<CheckMileageMember>) getSqlSession().selectList("CHECKMILEAGE_MEMBERS.getMemberLIST", checkMileageMember);
    }
}
